<?php
namespace app\common\model;

use think\model\concern\SoftDelete;

class FinancialRecord extends Base
{
    use SoftDelete;

    protected $name = 'financial_record';
    protected $deleteTime = 'delete_time';

    public function getObjTypeAttr($val)
    {
        $type = [1 => '订单', 2 => '提现'];
        return $type[$val];
    }
}